using B.S.Medical.ErrorCode;
using MediatR;
using System;

namespace B.S.Medical.Api.Write.Application.Command.Pay
{
    /// <summary>
    /// 修改支付订单状态命令
    /// </summary>
    public class UpdatePaymentStatusCommand : IRequest<ApiResult<bool>>
    {
        /// <summary>
        /// 订单号
        /// </summary>
        public string OrderNo { get; set; }

        /// <summary>
        /// 支付宝交易号
        /// </summary>
        public string? TradeNo { get; set; }

        /// <summary>
        /// 支付状态
        /// </summary>
        public string PayStatus { get; set; }

        /// <summary>
        /// 是否已支付
        /// </summary>
        public bool IsPaid { get; set; }

        /// <summary>
        /// 支付时间
        /// </summary>
        public DateTime? PayTime { get; set; }

        /// <summary>
        /// 支付方式
        /// </summary>
        public string? PayType { get; set; }

        /// <summary>
        /// 支付渠道
        /// </summary>
        public string? PayChannel { get; set; }

        /// <summary>
        /// 回调原始内容
        /// </summary>
        public string? NotifyRaw { get; set; }
    }
} 